package com.xiaoxx.coin.po.res;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class CancelOrderResponse {
    @ApiModelProperty( "用户自定义的订单号")
    private String clientOrderId;

    @ApiModelProperty(value = "累计成交量")
    private String cumQty;

    @ApiModelProperty(value = "成交金额")
    private String cumQuote;

    @ApiModelProperty(value = "成交量")
    private String executedQty;

    @ApiModelProperty(value = "系统订单号")
    private Long orderId;

    @ApiModelProperty(value = "原始委托数量")
    private String origQty;

    @ApiModelProperty(value = "委托价格")
    private String price;

    @ApiModelProperty(value = "仅减仓标识")
    private boolean reduceOnly;

    @ApiModelProperty(value = "买卖方向")
    private String side;

    @ApiModelProperty(value = "持仓方向")
    private String positionSide;

    @ApiModelProperty(value = "订单状态")
    private String status;

    @ApiModelProperty(value = "触发价，对 TRAILING_STOP_MARKET 无效")
    private String stopPrice;

    @ApiModelProperty(value = "是否条件全平仓")
    private boolean closePosition;

    @ApiModelProperty(value = "交易对")
    private String symbol;

    @ApiModelProperty(value = "有效方法")
    private String timeInForce;

    @ApiModelProperty(value = "触发前订单类型")
    private String origType;

    @ApiModelProperty(value = "订单类型")
    private String type;

    @ApiModelProperty(value = "跟踪止损激活价格，仅 TRAILING_STOP_MARKET 订单返回此字段")
    private String activatePrice;

    @ApiModelProperty(value = "跟踪止损回调比例，仅 TRAILING_STOP_MARKET 订单返回此字段")
    private String priceRate;

    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    @ApiModelProperty(value = "条件价格触发类型")
    private String workingType;

    @ApiModelProperty(value = "是否开启条件单触发保护")
    private boolean priceProtect;

    @ApiModelProperty(value = "盘口价格下单模式")
    private String priceMatch;

    @ApiModelProperty(value = "订单自成交保护模式")
    private String selfTradePreventionMode;

    @ApiModelProperty( "订单TIF为GTD时的自动取消时间")
    private Long goodTillDate;
}
